package com.w3schools.www.webservices;

import java.rmi.RemoteException;

/**
 * 
 * Ejecuta consultas con el web service
 * 
 * com.w3schools.www.webservices
 *
 * @author Grupo 4
 * @version 1.0
 *
 */
public class Main
{
    /**
     * 
     * Genera la consulta y muestra por consola.
     * 
     * @param args
     */
    public static void main(String[] args)
    {
        TempConvertSoapProxy tempConvert = new TempConvertSoapProxy();
        
        try {
            // 32 celsius To Fahrenheit
            System.out.println("32 celsiusToFahrenheit -> " + tempConvert.celsiusToFahrenheit("32"));
        
            // 28 celsius To Fahrenheit
            System.out.println("28 celsiusToFahrenheit -> " + tempConvert.celsiusToFahrenheit("28"));
            
            // 45 fahrenheit To Celsius
            System.out.println("45 fahrenheitToCelsius -> " + tempConvert.fahrenheitToCelsius("45"));
            
            // 80 fahrenheit To Celsius
            System.out.println("80 fahrenheitToCelsius -> " + tempConvert.fahrenheitToCelsius("80"));
        } catch (RemoteException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }

}
